#define _CRT_SECURE_NO_WARNINGS
#include "Heap.h"
void test01()
{
	Heap heap;
	HeapInit(&heap);
	HeapPush(&heap, 6);
	HeapPush(&heap, 4);
	HeapPush(&heap, 3);
	HeapPush(&heap, 2);
	HeapPush(&heap, 8);
	while (!HeapEmpty(&heap))
	{
		printf("%d ", HeapTop(&heap));
		HeapPop(&heap);
	}
	HeapDestory(&heap);
}

void test02()
{
	int a [] = {1,45,12,13,21,32};
	HeapSort(a,sizeof(a)/sizeof(int));
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		printf("%d ", a[i]);
	}
}
int main()
{
	//test01();
	test02();
	return 0;
}